From: Florian Eckert Date: Tue, 7 Oct 2025 08:43:14 +0000 (+0200) Subject: luci-base: add getPending ubus function call X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=7b6b0d01391736c1b38807a6f5a0d0fd00e98450;p=project%2Fluci.git luci-base: add getPending ubus function call Exporting the ubus “pending” information so that this information can be used in LuCI. Signed-off-by: Florian Eckert --- diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index 43dded3295..7ce3e44c52 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -2560,6 +2560,16 @@ Protocol = baseclass.extend(/** @lends LuCI.network.Protocol.prototype */ { return (this._ubus('dynamic') == true); }, + /** + * Checks whether this logical interface is pending. + * + * @returns {boolean} + * returns `true` when the interface is pending or `false` when it is not. + */ + isPending: function() { + return (this._ubus('pending') == true); + }, + /** * Checks whether this interface is an alias interface. *